<%@ Page Language="C#" MasterPageFile="../MasterPages/StoreMaster.master" AutoEventWireup="true" Inherits="Codagenic.Store.Presentation.Web.Pages.OfferList" Title="Offers" %>
<%@ Import Namespace="Codagenic.Store.HttpModules" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1><asp:Literal ID="ltlTitle" runat="server" /></h1>

    <asp:Repeater ID="rpOffers" runat="server" Visible="false" OnItemDataBound="rpOffers_ItemDataBound">
        <HeaderTemplate>
            <ul id="offers">
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <h3><%# Eval("Title") %></h3>
                <asp:Image ID="ctlImage" runat="server" Visible="false" />
                <%# Eval("Description") %> 
                <p><a href="<%# StoreUrlManager.BaseLinkUrl + Eval("UrlFriendlyTitle") %>.html">View offer details</a></p>
            </li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>

    <asp:Panel ID="pnlOfferDetails" runat="server" Visible="false">
    
        <asp:Image ID="ctlAdditionalImage" runat="server" Visible="false" />
    
        <p><asp:Literal ID="ltlDescription" runat="server" /></p>
        
        <hr />
        
        <p><asp:Literal ID="ltlAdditionalInformation" runat="server" /></p>
    
    </asp:Panel>

</asp:Content>
